package ace.cmp.rest.spring.data.jdbc.querydsl.test.core.dao.repository.impl;

import ace.cmp.rest.spring.data.jdbc.querydsl.test.core.dao.entity.Author;
import ace.cmp.rest.spring.data.jdbc.querydsl.test.core.dao.repository.AuthorRepository;
import java.util.ArrayList;
import java.util.List;
import org.springframework.stereotype.Component;

/**
 * @author caspar
 * @date 2023/8/22 17:04
 */
@Component
public class AuthorRepositoryImpl implements AuthorRepository {
  private final List<Author> all = new ArrayList<>();

  @Override
  public void insert(List<Author> authors) {
    all.addAll(authors);
  }
}
